package com.orientsec.autotest.project.system.autoRequesmappingDetail.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.orientsec.autotest.project.system.autoRequesmappingDetail.mapper.AutoRequesmappingDetailMapper;
import com.orientsec.autotest.project.system.autoRequesmappingDetail.domain.AutoRequesmappingDetail;
import com.orientsec.autotest.project.system.autoRequesmappingDetail.service.IAutoRequesmappingDetailService;
import com.orientsec.autotest.common.utils.text.Convert;

/**
 * 请求映射详情 服务层实现
 * 
 * @author autotest
 * @date 2020-01-14
 */
@Service
public class AutoRequesmappingDetailServiceImpl implements IAutoRequesmappingDetailService 
{
	@Autowired
	private AutoRequesmappingDetailMapper autoRequesmappingDetailMapper;

	/**
     * 查询请求映射详情信息
     * 
     * @param rmdId 请求映射详情ID
     * @return 请求映射详情信息
     */
    @Override
	public AutoRequesmappingDetail selectAutoRequesmappingDetailById(Integer rmdId)
	{
	    return autoRequesmappingDetailMapper.selectAutoRequesmappingDetailById(rmdId);
	}
	
	/**
     * 查询请求映射详情列表
     * 
     * @param autoRequesmappingDetail 请求映射详情信息
     * @return 请求映射详情集合
     */
	@Override
	public List<AutoRequesmappingDetail> selectAutoRequesmappingDetailList(AutoRequesmappingDetail autoRequesmappingDetail)
	{
	    return autoRequesmappingDetailMapper.selectAutoRequesmappingDetailList(autoRequesmappingDetail);
	}
	
    /**
     * 新增请求映射详情
     * 
     * @param autoRequesmappingDetail 请求映射详情信息
     * @return 结果
     */
	@Override
	public int insertAutoRequesmappingDetail(AutoRequesmappingDetail autoRequesmappingDetail)
	{
	    return autoRequesmappingDetailMapper.insertAutoRequesmappingDetail(autoRequesmappingDetail);
	}
	
	/**
     * 修改请求映射详情
     * 
     * @param autoRequesmappingDetail 请求映射详情信息
     * @return 结果
     */
	@Override
	public int updateAutoRequesmappingDetail(AutoRequesmappingDetail autoRequesmappingDetail)
	{
	    return autoRequesmappingDetailMapper.updateAutoRequesmappingDetail(autoRequesmappingDetail);
	}

	/**
     * 删除请求映射详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAutoRequesmappingDetailByIds(String ids)
	{
		return autoRequesmappingDetailMapper.deleteAutoRequesmappingDetailByIds(Convert.toStrArray(ids));
	}
	
}
